package com.jl.smartcard.ui.editors.cardfile;

import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.swt.graphics.Image;

class TableLabelProvider extends LabelProvider implements ITableLabelProvider {
	@Override
	public Image getColumnImage(Object element, int columnIndex) {
		return null;
	}

	@Override
	public String getColumnText(Object element, int columnIndex) {
		CardFileObject eo = (CardFileObject) element;
		switch (columnIndex) {
		case 0:
			return eo.getIndex() + "";
		case 1:
			return eo.getValue();
		default:
			return "null";
		}
	}
}